package com.jwb.config.filter;

import com.jwb.config.annotation.Logical;
import com.jwb.config.annotation.RequiresPermissions;
import com.jwb.config.exception.UnauthorizedException;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.Set;

/**
 * @author heeexy
 * @description: [角色权限]控制拦截器
 */
@Aspect
@Slf4j
@Component
@Order(3)
public class PermissionAspect {

    @Before("@annotation(com.jwb.config.annotation.RequiresPermissions)")
    public void before(JoinPoint joinPoint) {

    }
}
